projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1f51dc
)
[powerpc] implement page_is_removable()
author
Hollis Blanchard
<hollisb@us.ibm.com>
Thu, 27 Jul 2006 22:23:42 +0000
(17:23 -0500)
committer
Hollis Blanchard
<hollisb@us.ibm.com>
Thu, 27 Jul 2006 22:23:42 +0000
(17:23 -0500)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
xen/include/asm-powerpc/mm.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-powerpc/mm.h
b/xen/include/asm-powerpc/mm.h
index caac7fd6d85fd40df88fe27e882becc3abdad67e..137d3a3c17f0e1b843e1345409918a9361850f52 100644
(file)
--- a/
xen/include/asm-powerpc/mm.h
+++ b/
xen/include/asm-powerpc/mm.h
@@
-158,6
+158,11
@@
static inline int get_page_and_type(struct page_info *page,
return 1;
}
+static inline int page_is_removable(struct page_info *page)
+{
+ return ((page->count_info & PGC_count_mask) == 1);
+}
+
int get_page_type(struct page_info *page, u32 type);
#define set_machinetophys(_mfn, _pfn) (trap(), 0)